package service.Impl;

import dao.GoodsDao;
import lombok.Getter;
import lombok.Setter;
import service.GoodsService;

/**
 * @author SuTing
 * @version 1.0
 * @date 2021/11/11 19:03
 */
@Getter
@Setter
public class GoodsServiceImpl implements GoodsService {

    //通过配置文件方式注入
    private GoodsDao goodsDao;


    @Override
    public void buy() {
        goodsDao.buy();
        System.out.println("买了两本书");
    }


}
